import React, { useState } from 'react';
import ReactDOM from 'react-dom';
import GongYongSelectIcon from './componets/GongYongSelectIcon/GongYongSelectIcon'

const App = () => {
    const [visible, setVisible] = useState(false)
    return (
        <div style={{ display: 'flex', flexWrap: 'wrap' }}>
            <button onClick={() => setVisible(!visible)}>
                打开选择icon
            </button>
            <GongYongSelectIcon
                visible={visible}
                onOk={() => setVisible(!visible)}
                onCancel={() => setVisible(!visible)}
            />
        </div>
    )
}
ReactDOM.render(<App/>, document.getElementById('root'));

